<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('suppliers/inventory_list');?>'><em>用料记录</em></a><span>|</span>
        <a href='javascript:;' class="on" ><em>新增记录</em></a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
<div class="subnav">
订单编号：<?php echo $order_item_info['order_sn'].'-'.$order_item_info['id']?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
产品名称：<?php echo $orderfigure['product_name']?>
</div>
<form name="theForm" action="__SELF__" method="post" id="theForm">
<div id="price-div">
    <table width="100%" cellspacing="0">
      <thead>
            <tr>
            <th width="10%" align="center" ></th>
            <th width="20%" align="center" >名称</th>
            <th width="20%" align="center" >结余(米)</th>
            <th width="50%" align="center" >用料(米)</th>
            </tr>
      </thead>
  <tbody>
  <?php if($suppliers_info):?>
  <tr>
    <td align="center" >面料</td>
    <td align="center" ><?php echo $suppliers_info['suppliers_name'];?></td>
    <td align="center" ><?php echo $suppliers_info['surplus'];?></td>
    <td align="center" >
    <input type="hidden" value="<?php echo $suppliers_info['suppliers_id'];?>" name="tid[0]">
    <input type="hidden" value="0" name="type[0]">
    - <input type="text" class="input-text" maxlength="10" name="amount[0]">
    </td>
  </tr>
  <?php endif;?>
  <?php if($lining_info):?>
  <tr>
    <td align="center" >里料</td>
    <td align="center" ><?php echo $lining_info['suppliers_name'];?></td>
    <td align="center" ><?php echo $lining_info['surplus'];?></td>
    <td align="center" >
    <input type="hidden" value="<?php echo $lining_info['lining_id'];?>" name="tid[1]">
    <input type="hidden" value="1" name="type[1]">
    - <input type="text" class="input-text" maxlength="10" name="amount[1]">
    </td>
  </tr>
  <?php endif;?>        
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>
    <input name="order_item_id" type="hidden" value="<?php echo $order_item_info['id'];?>" />
    <input name="dosubmit" type="submit" value="提交" class="button" id="dosubmit" />
    </td>
  </tr>
</tbody></table>
</div>
    <div class="bk15"></div>
</form>
</div>
</div>
</body>
</html>